/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2025-02-18 08:43:59
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2025-05-28 09:53:54
 * @FilePath: /vue3-admin-server/src/entities/menu.entity.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Entity, Column } from 'typeorm';
import { BaseEntity } from './base.entity';

@Entity({
    name: 'menu'
})
export class MenuEntity extends BaseEntity {
    @Column({ length: 64 })
    name: string;

    @Column({ length: 255 })
    path?: string;

    @Column({ name: 'parent_id', type: 'int' })
    parentId: number;

    @Column({ length: 128 })
    icon: string;

    @Column({ name: 'sort_weight', type: 'int' })
    sortWeight: number;
}
